package com.zf.wms.nservice.client;

import com.zf.wms.nservice.client.hystrix.PurviewClientHystrix;
import com.zf.wms.nservice.utils.ResultMap;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author：sl
 * Date：2019-11-05 10:51
 * Description：<描述>
 */
@FeignClient(name = "wms-purview",url = "localhost:9002/",fallback = PurviewClientHystrix.class)
public interface PurviewClient {

    @GetMapping("/purview/allList")
    ResultMap getAllPurviewList();

    @PostMapping("/purview/setRolePurview")
    ResultMap setRolePurview(@RequestParam(value = "roleId")Integer roleId, @RequestParam(value = "menuId")String menuId);
}
